<template>
  <div class="header">
    <div class="back" @click="onBackClick">
      <Icon type="ios-arrow-back" />back
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    onBackClick() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="stylus">
.header {
  width: 100%;
  height: 150px;
  background-image: linear-gradient(to right, orange, pink);

  .back {
    font-size: 16px;
    padding: 15px 0 0 15px;
  }
}
</style>
